package com.lagou.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 课程媒体表
 * */
@Data
public class     Course_Media  implements Serializable {

  //课程媒体主键ID
  @JSONField(ordinal = 1)
  private int id;

  //课程id
  @JSONField(ordinal = 1)
  private int course_id;

  //章节id
  @JSONField(ordinal = 2)
  private int section_id;

  //课时id
  @JSONField(ordinal = 3)
  private int lesson_id;

  //封面图Url
  @JSONField(ordinal = 4)
  private String cover_image_url;

  //媒体类型，0-音频，1-视频
  @JSONField(ordinal = 5)
  private int media_type;

  //状态
  @JSONField(ordinal = 6)
  private int status;

  //创建时间
  @JSONField(ordinal = 7)
  private String create_time;

  //修改时间
  @JSONField(ordinal = 8)
  private String update_time;

  //是否删除
  @JSONField(ordinal = 9)
  private int isDel;

  @Override
  public String toString() {
    return "Course_Media{" +
            "id=" + id +
            ", course_id=" + course_id +
            ", section_id=" + section_id +
            ", lesson_id=" + lesson_id +
            ", cover_image_url='" + cover_image_url + '\'' +
            ", media_type=" + media_type +
            ", status=" + status +
            ", create_time='" + create_time + '\'' +
            ", update_time='" + update_time + '\'' +
            ", isDel=" + isDel +
            '}';
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public int getCourse_id() {
    return course_id;
  }

  public void setCourse_id(int course_id) {
    this.course_id = course_id;
  }

  public int getSection_id() {
    return section_id;
  }

  public void setSection_id(int section_id) {
    this.section_id = section_id;
  }

  public int getLesson_id() {
    return lesson_id;
  }

  public void setLesson_id(int lesson_id) {
    this.lesson_id = lesson_id;
  }

  public String getCover_image_url() {
    return cover_image_url;
  }

  public void setCover_image_url(String cover_image_url) {
    this.cover_image_url = cover_image_url;
  }

  public int getMedia_type() {
    return media_type;
  }

  public void setMedia_type(int media_type) {
    this.media_type = media_type;
  }

  public int getStatus() {
    return status;
  }

  public void setStatus(int status) {
    this.status = status;
  }

  public String getCreate_time() {
    return create_time;
  }

  public void setCreate_time(String create_time) {
    this.create_time = create_time;
  }

  public String getUpdate_time() {
    return update_time;
  }

  public void setUpdate_time(String update_time) {
    this.update_time = update_time;
  }

  public int getIsDel() {
    return isDel;
  }

  public void setIsDel(int isDel) {
    this.isDel = isDel;
  }

  public long getChannel() {
    return channel;
  }

  public void setChannel(long channel) {
    this.channel = channel;
  }

  public String getDuration() {
    return duration;
  }

  public void setDuration(String duration) {
    this.duration = duration;
  }

  public String getFile_id() {
    return file_id;
  }

  public void setFile_id(String file_id) {
    this.file_id = file_id;
  }

  public String getFile_url() {
    return file_url;
  }

  public void setFile_url(String file_url) {
    this.file_url = file_url;
  }

  public String getFile_edk() {
    return file_edk;
  }

  public void setFile_edk(String file_edk) {
    this.file_edk = file_edk;
  }

  public double getFile_size() {
    return file_size;
  }

  public void setFile_size(double file_size) {
    this.file_size = file_size;
  }

  public String getFile_name() {
    return file_name;
  }

  public void setFile_name(String file_name) {
    this.file_name = file_name;
  }

  public String getFile_dk() {
    return file_dk;
  }

  public void setFile_dk(String file_dk) {
    this.file_dk = file_dk;
  }

  public long getLast_operator_id() {
    return last_operator_id;
  }

  public void setLast_operator_id(long last_operator_id) {
    this.last_operator_id = last_operator_id;
  }

  public long getDuration_num() {
    return duration_num;
  }

  public void setDuration_num(long duration_num) {
    this.duration_num = duration_num;
  }

  @JSONField(serialize = false)
  private long channel; //媒体渠道
  @JSONField(serialize = false)
  private String duration;  //时长
  @JSONField(serialize = false)
  private String file_id;  //媒体资源文件ID
  @JSONField(serialize = false)
  private String file_url;  //媒体文件URL
  @JSONField(serialize = false)
  private String file_edk;  //媒体资源文件对应的EDK
  @JSONField(serialize = false)
  private double file_size; //文件大小MB
  @JSONField(serialize = false)
  private String file_name; //文件名称
  @JSONField(serialize = false)
  private String file_dk; //媒体资源文件对应的DK
  @JSONField(serialize = false)
  private long last_operator_id;  //最后操作者ID
  @JSONField(serialize = false)
  private long duration_num;  //时长，秒数

}
